package main

import (
	"fmt"
	"os"
	"strconv"
)

func main() {
	temptxt, temperr := os.OpenFile("temp.txt", os.O_CREATE|os.O_RDWR, os.ModePerm)
	fmt.Println(temptxt, temperr)
	bytes := make([]byte, 100)
	n, _ := temptxt.Read(bytes)
	fmt.Println(bytes)
	fmt.Println()
	fmt.Println(strconv.ParseInt(string(bytes[:n]), 10, 64))
	temptxt.Close()
}
